package com.sina.microblog.data
{
	public class MicroBlogFavorites
	{
		public var favoritedTime:Date;
		public var status:MicroBlogStatus;
		public var tags:Array;
		
		public function MicroBlogFavorites(favorites:Object)
		{
			this.favoritedTime = MicroBlogDataUtil.resolveDate(favorites["favorited_time"]);
			this.status = new MicroBlogStatus(favorites["status"]);
			if(favorites["tags"]){
				tags = [];
				for each (var tag:Object in favorites["tags"]){
					tags.push(new MicroBlogFavoritesTag(tag));
				}
			}
		}

	}
}